/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model.entities;

import java.util.List;

/**
 *
 * @author Ku81
 */
public class Role {
    private int idRole;
    private String name;
    private String descriptions;
    private boolean isActived;
    
    private List<User> userList = null;

    public Role() {
    }

    public Role(int idRole) {
        this.idRole = idRole;
    }

    public Role(String name, String descriptions, boolean isActived) {
        this.name = name;
        this.descriptions = descriptions;
        this.isActived = isActived;
    }

    /**
     * @return the idRole
     */
    public int getIdRole() {
        return idRole;
    }

    /**
     * @param idRole the idRole to set
     */
    public void setIdRole(int idRole) {
        this.idRole = idRole;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the descriptions
     */
    public String getDescriptions() {
        return descriptions;
    }

    /**
     * @param descriptions the descriptions to set
     */
    public void setDescriptions(String descriptions) {
        this.descriptions = descriptions;
    }

    /**
     * @return the isActived
     */
    public boolean isIsActived() {
        return isActived;
    }

    /**
     * @param isActived the isActived to set
     */
    public void setIsActived(boolean isActived) {
        this.isActived = isActived;
    }

    /**
     * @return the userList
     */
    public List<User> getUserList() {
        return userList;
    }

    /**
     * @param userList the userList to set
     */
    public void setUserList(List<User> userList) {
        this.userList = userList;
    }
}
